const seq = require('./seq')

// 同步模型
require('./model/index')

// 测试连接
seq.authenticate()
    .then(() => {
        console.log('auth ok')
    })
    .catch(() => {
        console.log('auth err')
    })

// 执行同步
seq.sync({ force: true }).then(() => {
    console.log('sync ok')
    process.exit()
})
